from common.response.biz_response_code import ResponseCode


class BizException(Exception):
    def __init__(self, code: ResponseCode, msg: str = None):
        self.code = code
        message = msg if msg is not None else code.msg
        super().__init__(message)
